<template>
    <van-nav-bar title="聊天信息" left-text="" left-arrow @click-left="onClickLeft">
        <template #right>
            <van-icon name="ellipsis" @click="onClickRight" size="30" />
        </template>
    </van-nav-bar>
</template>

<script setup>
// import { Icon } from 'vant';
import {inject} from "vue"
import { useRouter } from "vue-router"
//  defineProps(["backs"])
const res = inject("toUser")
// console.log(res)
const router = useRouter()
const onClickLeft = () => {
    router.go(-1)
}
const onClickRight = () => {
    router.push({
        path:"/xiang",
        query:res
    })
};
</script>

<style scoped></style>